
'	Teplomer:

{macro:cez_zastavky_frame}

	(L.L.elec_busbar_main) 0 =
	{if}
		(L.L.IBIS_Route) 0 =
		{if}
			"" (S.$.BS170_lcd_line) (S.$.BS170_lcd_start) (S.$.BS170_lcd_dest) (S.$.BS170_lcd_nextstop) (S.$.BS170_lcd_stop1) (S.$.BS170_lcd_stop2) (S.$.BS170_lcd_stop3) (S.$.BS170_lcd_stop4) (S.$.BS170_lcd_stop5) (S.$.BS170_lcd_stop6) (S.$.BS170_lcd_stop7) (S.$.BS170_lcd_stop8)
		{else}
'		
			
'			Linka:
			(L.$.Matrix_Nr) (S.$.BS170_lcd_line)
			
'			Cieľ:	
			(L.$.IBIS_terminus_name) 29 $SetLengthL (S.$.BS170_lcd_dest)

'			Štart:
			(L.L.IBIS_RouteIndex) 0 (M.V.GetRouteBusstopIdent)
			(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
			(S.$.BS170_lcd_start)
			
'			Ďalšia zastávka:
			(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent)
			(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
			(S.$.BS170_lcd_nextstop)
			
'			1. zastávka:
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 1 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop1)
			{else}
				"" (S.$.BS170_lcd_stop1)
			{endif}
			
'			2. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 2 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop2)
			{else}
				"" (S.$.BS170_lcd_stop2)
			{endif}
			
'			3. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 3 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop3)
			{else}
				"" (S.$.BS170_lcd_stop3)
			{endif}
			
'			4. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 4 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop)  4 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop4)
			{else}
				"" (S.$.BS170_lcd_stop4)
			{endif}
			
'			5. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 5 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 5 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop5)
			{else}
				"" (S.$.BS170_lcd_stop5)
			{endif}
			
'			6. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 6 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop)  6 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop6)
			{else}
				"" (S.$.BS170_lcd_stop6)
			{endif}
			
'			7. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 7 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop)  7 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop7)
			{else}
				"" (S.$.BS170_lcd_stop7)
			{endif}
			
'			8. zastávka:		
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) 8 + >=
			{if}
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 8 + (M.V.GetRouteBusstopIdent)
				(M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) 29 $SetLengthL
				(S.$.BS170_lcd_stop8)
			{else}
				"" (S.$.BS170_lcd_stop8)
			{endif}	
		{endif}
	{endif}
{end}	
